package work20241203_chap6oop.o_demo12;

/**
 * @author zdl
 * @date 2024/12/5
 */
public class T {
    public Shape getShape(int i){
        switch (i){
            case 0:
                return new Circle(1);
            case 1:
                return new Rect(3,2);
            case 2:
                return new Square(2);
            default:
                return null;
        }
    }
}
